package Month10.day1004;

class Second implements Cloneable {
    Third tir;

    public Second(Third tir) {//第二个类的构造器
        this.tir = tir;
    }

    public String toString() {//重写第二个类的toString方法
        String s = this.tir.toString();
        return s;
    }

    @Override
    public Second clone() throws CloneNotSupportedException {//重写第二个类的clone方法
        Second sec = (Second) super.clone();
        sec.tir = tir.clone();
        return sec;
    }
}
